package com.uptown.matrix.core.producer;


import com.uptown.matrix.common.result.WebResult;
import org.springframework.stereotype.Service;

@Service
public abstract class ProducerService {

    // 向web服务暴露的接口
    public WebResult producerSend(String ip, String bootServer, String group, String topic, String message) {
        // TODO 校验白名单



        return this.producerSend(bootServer, group, topic, message);
    }

    public WebResult producerSend(String bootServer, String group, String topic, String message) {
        return WebResult.newInstance();
    }

    public abstract WebResult topicList();
}
